/*****************************************************************************
Description:
This program runs MDRD2 and MDRD1 pscore calculation do-files, with the option
of running
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
args mdrd2 mdrd1 prgs schs bw

* Switches for mdrd2
	local bw_calc	1 // calculate bandwidths
	local rv 		1 // calculate running variables
	local grad_sep 	0 // calculate separate bandwidths for graduation outcome


if `mdrd2' == 1 {
	pscores_mdrd2_ms, run_bw(`bw_calc') run_runvars(`rv') grad_sep(`grad_sep') bw(`bw')
}

if `mdrd1' == 1 {
	do "${code_clean_NYCms}pscores_mdrd1" `bw'
}

if `prgs' == 1 {
	do "${code_clean_NYCms}pscores_prgs" `bw'
}

if `schs' == 1 {
	do "${code_clean_NYCms}pscores_schools" `bw'
}
